package entity;


import java.util.List;
import java.util.Map;

public class BaseModel {

    private boolean all;//是否针对数据库所有表全量生成所有代码
    private boolean addColumn;//是否在entity字段上添加@Column注解
    private boolean play;//是否生成到项目中
    private String modelName;//测试目录模块名称
    private String basePath;//测试目录文件生成路径
    private String baseProject;//正式项目文件生成路径
    private String project;//项目名称
    private String basePackage;//包名
    private List<TableModel> modules;//配置每个模块(哪些表需要生成代码/生成文件路径)
    private Map<String, String> rules;//配置生成文件类型(指定文件生成模板)
//>>>>>>>>数据库相关配置
    private String host;
    private String db;
    private String userName;
    private String pwd;
    private String driverClass;

    public boolean isAll() {
        return all;
    }

    public void setAll(boolean all) {
        this.all = all;
    }

    public boolean isAddColumn() {
        return addColumn;
    }

    public void setAddColumn(boolean addColumn) {
        this.addColumn = addColumn;
    }

    public boolean isPlay() {
        return play;
    }

    public void setPlay(boolean play) {
        this.play = play;
    }

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getBaseProject() {
        return baseProject;
    }

    public void setBaseProject(String baseProject) {
        this.baseProject = baseProject;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getDb() {
        return db;
    }

    public void setDb(String db) {
        this.db = db;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public void setModules(List<TableModel> modules) {
        this.modules = modules;
    }

    public List<TableModel> getModules() {
        return modules;
    }

    public Map<String, String> getRules() {
        return rules;
    }

    public void setRules(Map<String, String> rules) {
        this.rules = rules;
    }


}
